<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>增加海贼资料</title>
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <link rel="stylesheet" href="/static/layui/css/layui.css"  media="all">
</head>
<body>
<ul class="layui-nav" lay-filter="">
    <li class="layui-nav-item"><a href="/admin/login/loginout">退出</a></li>
</ul>
<fieldset class="layui-elem-field layui-field-title" style="margin-top: 20px;">
    <legend>新增海贼资料</legend>
</fieldset>

<form class="layui-form" action="/admin/index/add_do" method="post"  enctype="multipart/form-data">
    <div class="layui-form-item">
        <label class="layui-form-label">海贼名字</label>
        <div class="layui-input-block">
            <input type="text" name="chname" required  lay-verify="required" placeholder="请输入海贼名字" autocomplete="off" class="layui-input">
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">海贼头像</label>
        <div class="layui-input-block">
            <input type="file" name="chimg" class="layui-btn" />
        </div>
    </div>
    <div class="layui-form-item">
        <label class="layui-form-label">海贼团</label>
        <div class="layui-input-block">
            {volist name="group" id="vo"}
            <input type="radio" name="group" value="{$vo.gr_id}" title="{$vo.gr_group}">
            {/volist}
        </div>
    </div>
    <div class="layui-form-item">
        <div class="layui-input-block">
            <input type="submit" value="添加" class="layui-btn" />
        </div>
    </div>
</form>

<script src="/static/layui/layui.all.js" charset="utf-8"></script>
</body>
</html>